<?php #//AJAX PHP PENNY AUCTION v.1.2.2

#////////////////////////////////////////////////////////////////
#//  COPYRIGHT 2009-2010 Aaron Helmlinger ALL RIGHTS RESERVED  //
#////////////////////////////////////////////////////////////////
            
            
         $query = mysql_fetch_array(mysql_query("SELECT * FROM PHPAUCTIONXL_version_1_3 WHERE id='1'"));
  
   $welcome_message = $query['welcome_message'];     
          $free_bids_at_sign_up2 = $query['free_bids_at_sign_up'];
         
             $query_settingsaa = "select * from PHPAUCTIONXL_version_2_0 where id='1'";
             $query_settings2ab =  mysql_query ($query_settingsaa);
             $activated = mysql_result($query_settings2ab,0,"slider_switch");
             $time = mysql_result($query_settings2ab,0,"slider_time");
             $img1 = mysql_result($query_settings2ab,0,"slider_img1");    
             $img2 = mysql_result($query_settings2ab,0,"slider_img2"); 
             $img3 = mysql_result($query_settings2ab,0,"slider_img3"); 
             $img4 = mysql_result($query_settings2ab,0,"slider_img4"); 
             $img5 = mysql_result($query_settings2ab,0,"slider_img5");                       
             $link1 = mysql_result($query_settings2ab,0,"slider_url1");    
             $link2 = mysql_result($query_settings2ab,0,"slider_url2"); 
             $link3 = mysql_result($query_settings2ab,0,"slider_url3"); 
             $link4 = mysql_result($query_settings2ab,0,"slider_url4"); 
             $link5 = mysql_result($query_settings2ab,0,"slider_url5");           
                                                            
?>
      <?  $tabid = 1;
  include "tab_menu.php";
  $subtabid = "welcome";
  include "tab_submenu.php";
  include "category_menu.php";
  include "homepage_banner.php";
        ?>
    <? print $tab_menu ?>
     <? //print $tab_submenu ?>
     <? //print $category_menu ?>
        
    
        <? 
        
        
        
        
          if($SETTINGS['banners'] == 1) {
        echo "<BR><center>";
  
#// CALLS BANNER FUNCTI?ON

include $prefix."includes/banners.inc.php";
$banner = view();

       
       
       
       echo "</center><BR>"; } else {
$banner =       "";
        }
 ?>
    
    
           <? if( $activated == 1 ) { //echo $activated; ?>
      
    <div id="content">
<div id="slider">
			<ul>	
       <? if( $img1  ) { ?>			
				<li><a href="<? print $link1; ?>"><img src="<? print $img1; ?>" alt="Css Template Preview" /></a></li>
				    <? } ?>
      <? if( $img1  ) { ?>	
        <li><a href="<? print $link2; ?>"><img src="<? print $img2; ?>" alt="Css Template Preview" /></a></li>
				    <? } ?>
          <? if( $img3 ) { ?>	
        <li><a href="<? print $link3; ?>"><img src="<? print $img3; ?>" alt="Css Template Preview" /></a></li>
				     <? } ?>
         <? if( $img4 ) { ?>	
        <li><a href="<? print $link4; ?>"><img src="<? print $img4; ?>" alt="Css Template Preview" /></a></li>
				    <? } ?>
         <? if( $img5  ) { ?>	
        <li><a href="<? print $link5; ?>"><img src="<? print $img5; ?>" alt="Css Template Preview" /></a></li>			
		      <? } ?>
    
    	</ul>
		</div>
</div>    
              <? } ?>




           <? if(!$_SESSION["PHPAUCTION_LOGGED_IN"]) {     ?>
          
          	
          	
         <!-- <DIV class="REGISTER_BANNER" >
          <DIV class="REGISTER_BANNER_TEXT" >
          
                  <? print $welcome_message; ?>
          
           
                           </DIV>       <DIV class="REGISTER_BANNER_BUTTON" >
                          
         <a href="register.php"><img src=images/register_banner_invisble.gif ></A>
         
                         </DIV>
                         
                   <DIV class="REGISTER_BANNER_BIDS_TEXT" >      
        
                <?      If ( $free_bids_at_sign_up2 != 0 ) {
                         
            //print $FREE_BIDS1." ".$free_bids_at_sign_up2." ".$FREE_BIDS2;  
                         
                         }  ?>
                             </DIV>
                         
                           </DIV> -->
                           
                           
                           <? } ?>
                           
                    <? if($_SESSION["PHPAUCTION_LOGGED_IN"]) {     ?>       
                <div>           
      <DIV class="PROMO_FRIEND_BOX1" >                     
                                 <A style="color:#ffffff; text-decoration:none" href=refer_a_friend_send.php ><? print $Refer_A_Freind_Submenu; ?></a>
                      </DIV>     
                           
                      <DIV class="PROMO_FRIEND_BOX2" >                     
                               <A style="color:#ffffff; text-decoration:none" href=promo_code.php ><? print $ENTER_PROMOCODE_NOTE; ?></a>
                      </DIV>          
                     </div>      
                 <? } ?>
                           
                           
                           
                           
                           
                           
                           
                           
     <? //print $homepage_banner ?>
 <? include "themes/default/news_box.html"; ?>
 
 
          <DIV class=CATEGORY_BOX_ON > <!-- To Turn Off Header Change The \"class\" to \"CATEGORY_BOX_OFF\" -->

       
               <? print $categories_graphic_select_menu; ?>
          
                 <? print $graphic_search_form; ?>
                 
<DIV style="text-align:center; width:144px; height:30px; border:0px solid black; float:left;">
  

  
  </DIV>
 
<DIV style="text-align:center; width:100px; height:30px; border:0px solid black; float:left; font-size:25px; color:black;" id="BIDSID" >


                                                          <?php
  
    if($_SESSION["PHPAUCTION_LOGGED_IN"]) {    
  
  $id2 = $_SESSION["PHPAUCTION_LOGGED_IN"];
  
  $query = mysql_fetch_array(mysql_query("SELECT bids_remaining FROM PHPAUCTIONXL_users WHERE id=$id2 "));
  
  echo $query['bids_remaining'];
  
 ?>
   
  
    
  <?php
        } else {
         
?>


<A href=user_login_form.php ><img src=images/login2.jpg></A>
  
  <? } ?>


</DIV>  
                        <DIV style="width:120px; height:30px; border:0px solid black; float:left;" >
                        
                        
                        
                        
                        
</DIV>  
                 <DIV style="width:150px; height:30px; border:0px solid black; float:left;">
                 
                 <A HREF=buybids.php ><img src=images/bid_button_invisible.gif></A>
</DIV>  
    
                    </DIV> 
 
                      
       

 

   <? print    $live_and_upcoming_auction_html ; ?>
    
    
    
    <?
    
       if ( $closed_auctions2 != 0) {
    
    include "closed_auctions.php"; 
    }
    
          ?>
                                                         

   
   
    
    
    
    
    
   